﻿	      <?php include("conn.php");
             mysql_query('SET NAMES UTF8'); 

	  
class MyPrizeBean
{
	public $fulse;

	function __construct($fulse)
	{
		$this->fulse      = $fulse;
	}
}



	$prize = array();
	
 if($_REQUEST[userid]!="")
 {         
 
	    
	      $srat=mysql_query("update  user set latitude='".$_REQUEST[weidu]."' where userid ='".$_REQUEST[userid]."'");
		  $srat=mysql_query("update  user set longitude='".$_REQUEST[jingdu]."' where userid ='".$_REQUEST[userid]."'");
           $der=100;
		
	
	
		
		}
		 else
		  {
		   $der=300;
		  }

$prize[] = new MyPrizeBean($der);
echo json_encode($prize);


?>